home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 3 / BBS in a box - Trilogy III.iso / Files / Prog / B-C / C++ FAQ Reference 1.0 / C++ FAQ Reference 1.0.rsrc / TEXT_1042.txt < prev    next >
Encoding:
Text File  |  1993-06-30  |  510 b   |  3 lines

  1. 'Private' is discussed in the previous section, and 'public' means 'anyone can access it'.  The third option, 'protected', makes a member (either data member or member fn) accessible to subclasses.
  2.  
  3. Thus members defined in the 'private:' section of class X are accessible only to the member functions and friends of class X; members defined in the 'public:' section are accessible by everyone; 'protected:' members are accessible by members fns and friends of class X, as well as member fns of subclasses of X.